From 57a60aa9445cece05cceb870461c846b788819c6 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 31 Dec 2012 13:53:44 -0800 Subject: [PATCH] camput: flatcache TODO. Change-Id: I4e2368f8e22d5aa71bee8f5319f59444f3c0e638 --- cmd/camput/flatcache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/camput/flatcache.go b/cmd/camput/flatcache.go index 338de2bb0..2bb5c3608 100644 --- a/cmd/camput/flatcache.go +++ b/cmd/camput/flatcache.go @@ -173,6 +173,7 @@ func (c *FlatStatCache) AddCachedPutResult(pwd, filename string, fi os.FileInfo, return } } + // TODO: flocking. see leveldb-go. c.af.Seek(0, os.SEEK_END) c.af.Write([]byte(fmt.Sprintf("%s\t%s\t%s/%d\n", key, val.Fingerprint, val.Result.BlobRef.String(), val.Result.Size))) } @@ -233,6 +234,7 @@ func (c *FlatHaveCache) NoteBlobExists(br *blobref.BlobRef) { return } } + // TODO: flocking. see leveldb-go. c.af.Seek(0, os.SEEK_END) c.af.Write([]byte(fmt.Sprintf("%s\n", k))) }