Is it possible in Kyoto Cabinet database to make safely a database snapshot and concurrently write to database in the same time ?
The KyotoCabinet database class kyotocabinet.DB (for JAVA among other languages) provides the following methods:
boolean dump_snapshot(String dest) // Dump records into a snapshot file.
boolean copy(String dest) // Create a copy of the database file.
Both operations could be quite long. I did not test this methods directly but by using the kcpolymgr
utility from different process. I found that the operations blocks other writer process-es (kcpolymgr set
) until the operations finish.
Is the behaviour the same when writes come from other threads in the same process ?