Skip to content

Commit

Permalink
added store argument for GenerateAllSlotsView
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Andreev committed May 24, 2008
1 parent a6b833a commit e94b60c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/strokedb/store.rb
Expand Up @@ -14,7 +14,7 @@ def initialize(options = {})
initialize_files
autosync! unless @options['noautosync']
raise "Missing chunk storage" unless @storage
@all_slots_view = GenerateAllSlotsView()
@all_slots_view = GenerateAllSlotsView(self)
end

def find(uuid, version=nil, opts = {}, &block)
Expand Down
4 changes: 2 additions & 2 deletions lib/strokedb/views/all_slots_view.rb
@@ -1,6 +1,6 @@
module StrokeDB
def GenerateAllSlotsView
View.named "strokedb_all_slots" do |view|
def GenerateAllSlotsView(store)
View.named(store, "strokedb_all_slots") do |view|
def view.map(uuid, doc)
doc.slotnames.inject([]) do |pairs, sname|
value = doc[sname]
Expand Down

0 comments on commit e94b60c

Please sign in to comment.