1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-13 23:02:14 +03:00

Fixed something I noticed in IOC::list_directory()

This commit is contained in:
Patrick LeBlanc
2019-04-02 13:39:09 -05:00
parent 7ebab52e8e
commit 34cd6595de
2 changed files with 5 additions and 4 deletions

View File

@@ -660,8 +660,10 @@ bool listdirtask()
bf::create_directories(tmpPath);
for (int i = 0; i < 10; i++) {
string file(tmpPath.string() + "/dummy" + to_string(i));
files.insert(file);
file += ".meta";
err = ::open(file.c_str(), O_CREAT | O_WRONLY, 0600);
assert(err >= 0);
fdMinders.push_back(err);
@@ -687,7 +689,6 @@ bool listdirtask()
assert(resp->header.flags == 0);
assert(resp->returnCode == 0);
listdir_resp *r = (listdir_resp *) resp->payload;
cout << "resp has " << r->elements << " elements" << endl;
assert(r->elements == 10);
int off = sizeof(sm_response) + sizeof(listdir_resp);
int fileCounter = 0;