Skip to content

Commit

Permalink
Fix a bug that open() creates a new store.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 26, 2013
1 parent 6813294 commit a9949d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grnxx/map/key_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ KeyStore<T> *KeyStore<T>::open(Storage *storage, uint32_t storage_node_id) {
GRNXX_ERROR() << "new grnxx::map::KeyStore failed";
return nullptr;
}
if (!store->create_store(storage, storage_node_id)) {
if (!store->open_store(storage, storage_node_id)) {
return nullptr;
}
return store.release();
Expand Down

0 comments on commit a9949d9

Please sign in to comment.