warrenfalk / rocksdb-sharp

.net bindings for the rocksdb by facebook
Other
206 stars 65 forks source link

Checkpoint: Hardlink #78

Open ernitingarg opened 4 years ago

ernitingarg commented 4 years ago

I have an issue while using checkpoint .

When i create checkpoint by providing a sub directory (eg: c:\rocksdb\checkpointdb), i could see all the sst files have been copied from 'rocksdb' to 'checkpointdb', seems like hardlink is not working bydefault ?

As per the document https://github.com/facebook/rocksdb/wiki/Checkpoints ,if the snapshot is on the same filesystem as the original database, the SST files will be hard-linked, otherwise SST files will be copied. The manifest and CURRENT files will be copied.

However i have 2 questions:-

  1. Am i missing something not to have hardlink ?
  2. How to implement "incremental" checkpoint?