summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gfdb/gfdb_sqlite3.c
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-08-06 12:19:23 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-08-12 05:09:40 -0700
commite8ea08d9a9ca9e507919c121b3a2e56fd5f580f4 (patch)
tree99e95df20759adb3aee8002feb83a68bf0aacaf6 /libglusterfs/src/gfdb/gfdb_sqlite3.c
parente65160c5bec78e7385eedf3cf02d9cdcb756db0c (diff)
features/shard: Fill inode ctx in readdir(p) callback too
The only place where shard translator was initialising inode ctx was lookup callback. But if the inodes are created and linked through readdirp, shard_lookup() path _may_ not be exercised before FUSE winds other fops on them. Since shard translator does an inode_ctx_get() first thing in most fops, an uninitialised ctx could cause it to fail the operation with ENOMEM. The solution would be to also initialise inode ctx if it has not been done already in readdir(p) callback. Change-Id: I3e058cd2a29bc6a69a96aaac89165c3251315625 BUG: 1250855 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/11854 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/gfdb/gfdb_sqlite3.c')
0 files changed, 0 insertions, 0 deletions