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
Post a Comment