src/fs/rock/RockRebuild.cc:356:17: error: variable length arrays
in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
char hdrBuf[SwapDir::HeaderSize];
note: initializer of 'HeaderSize' is unknown
#include <sys/stat.h>
#endif
-const int64_t Rock::SwapDir::HeaderSize = 16*1024;
-
Rock::SwapDir::SwapDir(): ::SwapDir("rock"),
slotSize(HeaderSize), filePath(nullptr), map(nullptr), io(nullptr),
waitingForPage(nullptr)
/* configurable options */
DiskFile::Config fileConfig; ///< file-level configuration options
- static const int64_t HeaderSize; ///< on-disk db header size
+ static const int64_t HeaderSize = 16*1024; ///< on-disk db header size
};
/// initializes shared memory segments used by Rock::SwapDir