summaryrefslogtreecommitdiff
path: root/newsort.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-09 12:54:04 -0600
committerJeff Carr <[email protected]>2025-01-09 12:54:04 -0600
commite79ba634661baba562fa0ab9245040bd37c29f4c (patch)
treea0f0908d87ff9197ebc87dd6a715e002b2a0785c /newsort.go
parentc99d8763e6c85513c700d58cd1e2163c31d2187d (diff)
rename dir
Diffstat (limited to 'newsort.go')
-rw-r--r--newsort.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/newsort.go b/newsort.go
index aa6a8c2..1fba9be 100644
--- a/newsort.go
+++ b/newsort.go
@@ -14,16 +14,19 @@ func (pb *Files) makeNewSortfile(pf *File) {
for _, msg := range pf.MsgNames {
if msg.DoMutex {
- pf.syncLock(f, msg.Lockname)
- pf.iterTop(f, msg.Name)
+ msg.syncLock(f, msg.Lockname)
+ for _, key := range msg.Sort {
+ pf.iterTop(f, key)
+ pf.iterNext(f, key)
+ }
} else {
log.Info("Skipping syncLock() for", msg.Name, "DoMutex = false")
}
+ pf.appendUnique(f, msg, sortmap) // Append() enforce no unique keys
}
- iterNext(f, sortmap)
- iterAppend(f, sortmap) // Append() enforce no unique keys
- iterSortAll(f, sortmap)
+ return
+ // iterSortAll(f, sortmap)
if argv.Append != "" {
sortmap["append"] = string(argv.Append)