Commit 7a6f75f4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6f5f8922
...@@ -353,7 +353,8 @@ package main ...@@ -353,7 +353,8 @@ package main
// //
// //
// XXX we delay recomputing δFtail.LastBlkRev(file, #blk, head) because // XXX we delay recomputing δFtail.LastBlkRev(file, #blk, head) because
// just cheap revmax estimate can frequently result in all watches being skipped. // using just cheap revmax estimate can frequently result in all watches
// being skipped.
// //
// 7.2) for all registered client@at watchers of head/bigfile/file: // 7.2) for all registered client@at watchers of head/bigfile/file:
// //
...@@ -508,7 +509,7 @@ type BigFileDir struct { ...@@ -508,7 +509,7 @@ type BigFileDir struct {
fileMu sync.Mutex fileMu sync.Mutex
fileTab map[zodb.Oid]*BigFile fileTab map[zodb.Oid]*BigFile
// δ of tracked BTree nodes of all BigFiles + -> which file // δ tail of tracked BTree nodes of all BigFiles + -> which file
// (used only for head/, not revX/) // (used only for head/, not revX/)
δFmu sync.RWMutex δFmu sync.RWMutex
δFtail *ΔFtail δFtail *ΔFtail
...@@ -802,9 +803,9 @@ retry: ...@@ -802,9 +803,9 @@ retry:
// XXX no indexMu lock needed because head is Locked // XXX no indexMu lock needed because head is Locked
// XXX stub -> TODO full δbtree | update indexLooked itself // XXX stub -> TODO full δbtree | update indexLooked itself
//fmt.Printf("\nbtreeChangev: %v\n", btreeChangev) //fmt.Printf("\nbtreeChangev: %v\n", btreeChangev)
δf := bfdir.δFtail.Update(δZ) δF := bfdir.δFtail.Update(δZ)
//fmt.Printf("xfiles: %v\n", xfiles) //fmt.Printf("xfiles: %v\n", xfiles)
for file, δfile := range δf.Change { for file, δfile := range δF.Change {
// XXX use δfile blocks // XXX use δfile blocks
_ = δfile _ = δfile
finv, ok := toinvalidate[file] finv, ok := toinvalidate[file]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment