google / google/leveldb

leveldb::DB::Open(options, "./tmp", &db) ==>IO error: ./tmp: Invalid argument

Open
#1,063 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
39.4k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

I use wsl(ubuntu on windows) to build leveldb, however, when I want to test leveldb, and some errors happened.

```
#include
#include
#include
#include

#include

int main()
{
leveldb::DB *db;
leveldb::Options options;
leveldb::Status status;

std::string key1 = "key1";
std::string val1 = "val1", val;

options.create_if_missing = true;
status = leveldb::DB::Open(options, "./tmp", &db);
if (!status.ok())
{
std::cout << status.ToString() << std::endl;
exit(1);
}
}

```
```
IO error: ./tmp: Invalid argument
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.