summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/globals.h
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2015-05-13 19:56:47 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-06-03 22:19:11 -0700
commit271ee96e5c8636ee512a06e0478982874c160a1a (patch)
treea3be24e841035b775f76eac5ce0ab3a379a9d8d9 /libglusterfs/src/globals.h
parent261f2cd3d03b76248c446d047086032ce18ad1c5 (diff)
cluster/dht: Don't rely on linkto xattr to find destination subvol
during phase 2 of migration. linkto xattr on source file cannot be relied to find where the data file currently resides. This can happen if there are multiple migrations before phase 2 detection by a client. For eg., * migration (M1, node1, node2) starts. * application writes some data. DHT correctly stores the state in inode context that phase-1 of migration is in progress * migration M1 completes * migration (M2, node2, node3) is triggered and completed * application resumes writes to the file. DHT identifies it as phase-2 of migration. However, linkto xattr on node1 points to node2, but the file is on node3. A lookup correctly identifies node3 as cached subvol TBD: When we identify phase-2 of a previous migration (say M1), there might be a migration in progress - say (M3, node3, node4). In this case we need to send writes to both (node3, node4) not just node3. Also, the inode state needs to correctly indicate that its in phase-1 of migration. I'll send this as a different patch. Change-Id: I1a861f766258170af2f6c0935468edb6be687b95 BUG: 1225809 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/10805 Reviewed-on: http://review.gluster.org/10965 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/globals.h')
0 files changed, 0 insertions, 0 deletions