env_spdk: make sure the Randomaccessfile opened as rocksdb posix env.

Change-Id: I89b1396c8e6dd2cfb521aa442fbc5e7fdc6c6312
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
Reviewed-on: https://review.gerrithub.io/394461
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Cunyin Chang 2018-01-12 07:40:36 +08:00 committed by Jim Harris
parent 583e969922
commit cd31a31f03

View File

@ -164,7 +164,7 @@ public:
SpdkRandomAccessFile::SpdkRandomAccessFile(const std::string &fname, const EnvOptions &options) SpdkRandomAccessFile::SpdkRandomAccessFile(const std::string &fname, const EnvOptions &options)
{ {
spdk_fs_open_file(g_fs, g_sync_args.channel, fname.c_str(), SPDK_BLOBFS_OPEN_CREATE, &mFile); spdk_fs_open_file(g_fs, g_sync_args.channel, fname.c_str(), 0, &mFile);
} }
SpdkRandomAccessFile::~SpdkRandomAccessFile(void) SpdkRandomAccessFile::~SpdkRandomAccessFile(void)