Permalink
Browse files

Record#reset_space!

clears cached space instances
  • Loading branch information...
1 parent bb76c68 commit 4ea519a837d342cc457c9139fbb884e011af092e @funny-falcon funny-falcon committed Jul 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/tarantool/base_record.rb
@@ -111,6 +111,11 @@ def auto_space
end
end
+ def reset_space!
+ @space = nil
+ @auto_space = nil
+ end
+
def by_pk(pk)
if Hash === (res = space.by_pk(pk))
from_fetched(res)

0 comments on commit 4ea519a

Please sign in to comment.