make necessary changes

This commit is contained in:
Yicheng Qin
2014-04-11 17:00:14 -07:00
parent 79a89dcb82
commit 56ef6fbcae
4 changed files with 15 additions and 13 deletions

View File

@@ -294,7 +294,9 @@ func (s *PeerServer) Start(snapshot bool, discoverURL string, peers []string) er
// Set NOCOW for data directory in btrfs
if btrfs.IsBtrfs(s.raftServer.LogPath()) {
btrfs.SetNOCOW(s.raftServer.LogPath())
if err := btrfs.SetNOCOWFile(s.raftServer.LogPath()); err != nil {
log.Warnf("Failed setting NOCOW: %v", err)
}
}
s.findCluster(discoverURL, peers)