diff options
author | N Balachandran <nbalacha@redhat.com> | 2017-08-16 12:58:52 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-08-20 02:47:02 +0000 |
commit | 96b33b4b278391ca8a7755cf274931d4f1808cb5 (patch) | |
tree | aaee51698327605c0237f4b63d1a66775f48c164 /tests/bugs/write-behind | |
parent | 01abf7ee37702407403afcf9aa6c9019a0316e1d (diff) | |
download | glusterfs-96b33b4b278391ca8a7755cf274931d4f1808cb5.tar.gz glusterfs-96b33b4b278391ca8a7755cf274931d4f1808cb5.tar.xz glusterfs-96b33b4b278391ca8a7755cf274931d4f1808cb5.zip |
cluster/dht: Reorder dir operations in gf_defrag_fix_layout
Earlier, rebalance performed a fix-layout on a directory
before healing its subdirectories. If there were a lot of
subdirs, it could take a while before all subdirs were
created on the newly added bricks. As dht_readdirp only lists
dirs from their hashed subvol, those dirs which hashed to
the newly added bricks but were not yet created on them were
not listed.
Now, the child dirs are listed and processed before the layout
of the parent is fixed. This introduces a change in behaviour
where files in subdirs are migrated before those in parent
directories.
Credit: Shyam <srangana@redhat.com>
Github issue: #239
Change-Id: I8ae7f24a510754cd8d1b31e5d608bcf1928599e2
BUG: 1248393
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: https://review.gluster.org/18045
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'tests/bugs/write-behind')
0 files changed, 0 insertions, 0 deletions