Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/filestore/HashIndex: be loud about splits #12421

Merged
merged 1 commit into from Mar 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/os/filestore/HashIndex.cc
Expand Up @@ -315,6 +315,8 @@ int HashIndex::split_dirs(const vector<string> &path) {
}

if (must_split(info)) {
dout(1) << __func__ << " " << path << " has " << info.objs
<< " objects, starting split." << dendl;
r = initiate_split(path, info);
if (r < 0) {
dout(10) << "error initiating split on " << path << ": "
Expand All @@ -323,6 +325,8 @@ int HashIndex::split_dirs(const vector<string> &path) {
}

r = complete_split(path, info);
dout(1) << __func__ << " " << path << " split completed."
<< dendl;
if (r < 0) {
dout(10) << "error completing split on " << path << ": "
<< cpp_strerror(r) << dendl;
Expand Down Expand Up @@ -378,10 +382,15 @@ int HashIndex::_created(const vector<string> &path,
return r;

if (must_split(info)) {
dout(1) << __func__ << " " << path << " has " << info.objs
<< " objects, starting split." << dendl;
int r = initiate_split(path, info);
if (r < 0)
return r;
return complete_split(path, info);
r = complete_split(path, info);
dout(1) << __func__ << " " << path << " split completed."
<< dendl;
return r;
} else {
return 0;
}
Expand Down