westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
238 stars 87 forks source link

Prevent concurrent write opens/migrations #200

Closed yhr closed 2 years ago

yhr commented 2 years ago

Adresses #195

metaspace commented 2 years ago
In file included from plugin/zenfs/fs/io_zenfs.cc:11:
plugin/zenfs/fs/io_zenfs.cc: In constructor 'rocksdb::ZonedWritableFile::ZonedWritableFile(rocksdb::ZonedBlockDevice*, bool, std::shared_ptr<rocksdb::ZoneFile>)':
plugin/zenfs/fs/io_zenfs.cc:769:20: error: 'using element_type = class rocksdb::ZoneFile' {aka 'class rocksdb::ZoneFile'} has no member named 'IsOpenForWrite'; did you mean 'IsOpenForWR'?
  769 |   assert(zoneFile->IsOpenForWrite());
      |                    ^~~~~~~~~~~~~~
metaspace commented 2 years ago

AquireWRLock() -> AcquireWRLock(), same for Try..

yhr commented 2 years ago

AquireWRLock() -> AcquireWRLock(), same for Try..

doh! fixed!