alibaba / tfs

TFS (Taobao File System) is a distributed file system similar to GFS.
http://tfs.taobao.org
GNU General Public License v2.0
1.24k stars 457 forks source link

task.cpp need_add_server_to_map #7

Open git-hulk opened 9 years ago

git-hulk commented 9 years ago

https://github.com/alibaba/tfs/blob/master/src/nameserver/task.cpp#L67

return type_ == PLAN_TYPE_MOVE || type_ == PLAN_TYPE_REPLICATE || PLAN_TYPE_COMPACT;

这个是否为手误? 是不是应该为:

return type_ == PLAN_TYPE_MOVE || type_ == PLAN_TYPE_REPLICATE || type_ == PLAN_TYPE_COMPACT;

还是特意让代码一直返回true