c++ - rocksdb in multithreaded environment -


i'm using rocksdb in multithreaded environment.

all of threads doing get(), put() , merge() operations, potentially same keys.

is rocks providing me built in synchronization? configurable? i've gone through documentation , source code, couldn't figure out certain.

there's no such synchronization.

you're guaranteed get, put , merge operations atomic. however, if trying read , write same key-value pair in multi-threaded environment, operations' order not determined. have synchronization yourself.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -