Get Positions - when rolling

CT test was call get_positions hilst the sile was rolling - don't want
the file to be checked in this state, so just return an empty list.
This commit is contained in:
martinsumner 2016-10-31 14:01:09 +00:00
parent 3b05874b8a
commit 9bef57a78d

View file

@ -316,6 +316,8 @@ rolling({key_check, Key}, _From, State) ->
get_mem(Key, State#state.handle, State#state.hashtree, loose_presence),
rolling,
State};
rolling({get_positions, _SampleSize}, _From, State) ->
{reply, [], rolling, State};
rolling({return_hashtable, IndexList, HashTreeBin}, _From, State) ->
Handle = State#state.handle,
{ok, BasePos} = file:position(Handle, State#state.last_position),