Permalink
Browse files

Meta server: send chunk delete rpc to all chunk servers hosting repli…

…cas in the case when the chunk allocation successfully completes after the file has been already deleted.
  • Loading branch information...
1 parent a7f77bc commit 9da4e04a3647c88a4104b3f2edf7de6bd4163abe @mikeov mikeov committed Feb 15, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/cc/meta/MetaRequest.cc
@@ -1660,7 +1660,8 @@ MetaAllocate::LayoutDone(int64_t chunkAllocProcessTime)
if (appendChunk && status == -EEXIST) {
panic("append chunk allocation internal error",
false);
- } else if (status == -EEXIST && curChunkId != chunkId) {
+ } else if (status == -ENOENT ||
+ (status == -EEXIST && curChunkId != chunkId)) {
gLayoutManager.DeleteChunk(this);
}
}

0 comments on commit 9da4e04

Please sign in to comment.