public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
removed obsolete code & spec
oleganza (author)
Sun Jun 08 10:51:34 -0700 2008
commit  518bb24eddf65171ba114cb02affa836077e16fc
tree    16f9065e9350770a22e2a57e7132443307dca3e8
parent  65067ffe17c5e1af76a22912a5878d827a070b58
...
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
...
39
40
41
 
42
 
 
 
 
 
 
 
 
 
 
 
 
43
44
45
0
@@ -39,20 +39,7 @@ module StrokeDB
0
     def save!(doc)
0
       next_timestamp!
0
       storage.save!(doc, timestamp)
0
-      
0
       update_views!(doc)
0
-      
0
-      # TODO: remove this shit 
0
-      if @index_store
0
-        if doc.previous_version
0
-          raw_pdoc = find(doc.uuid,doc.previous_version,:no_instantiation => true)
0
-          pdoc = Document.from_raw(self,raw_pdoc.freeze,:skip_callbacks => true)
0
-          pdoc.extend(VersionedDocument)
0
-          @index_store.delete(pdoc)
0
-        end
0
-        @index_store.insert(doc)
0
-        @index_store.save!
0
-      end
0
     end  
0
 
0
     def save_as_head!(doc)

Comments