Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix edge condition when loading shards from disk
BugzId: 13386
  • Loading branch information
davisp committed May 11, 2012
1 parent 8ca5c51 commit 6469c355f927d758e35be1049522a61697525497
Showing 1 changed file with 1 addition and 1 deletion.
@@ -250,7 +250,7 @@ load_shards_from_db(#db{} = ShardDb, DbName) ->
load_shards_from_disk(DbName, DocId)->
Shards = load_shards_from_disk(DbName),
HashKey = mem3_util:hash(DocId),
[S || #shard{range = [B,E]} = S <- Shards, B < HashKey, HashKey =< E].
[S || #shard{range = [B,E]} = S <- Shards, B =< HashKey, HashKey =< E].

create_if_missing(Name) ->
DbDir = couch_config:get("couchdb", "database_dir"),

0 comments on commit 6469c35

Please sign in to comment.