Fix DirBlob::releaseBaseBlob()

This commit is contained in:
Sebastian Messmer 2015-10-05 19:09:17 +02:00
parent e890222c77
commit 81e856fda2
2 changed files with 3 additions and 1 deletions

View File

@ -262,6 +262,7 @@ void DirBlob::setLstatSizeGetter(std::function<off_t(const blockstore::Key&)> ge
cpputils::unique_ref<blobstore::Blob> DirBlob::releaseBaseBlob() {
std::unique_lock<std::mutex> lock(_mutex);
_writeEntriesToBlob();
return FsBlob::releaseBaseBlob();
}
}

View File

@ -24,10 +24,11 @@ namespace cryfs {
static void InitializeBlobWithMagicNumber(blobstore::Blob *blob, unsigned char magicNumber);
private:
friend class FsBlobStore;
virtual cpputils::unique_ref<blobstore::Blob> releaseBaseBlob();
private:
cpputils::unique_ref<blobstore::Blob> _baseBlob;
DISALLOW_COPY_AND_ASSIGN(FsBlob);