summaryrefslogtreecommitdiff
path: root/sort.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-11 02:44:21 -0600
committerJeff Carr <[email protected]>2025-01-11 02:44:21 -0600
commit9349ab95fc91f74f2c242a7e3ccc0b630c3d95f3 (patch)
treecaaf75c3d0da4392a57e0d32b137435160b67d0e /sort.go
parent3f2909aa0d95acc5b00642d082013afd40108a30 (diff)
small app works, example core dumps on Marshal()
Diffstat (limited to 'sort.go')
-rw-r--r--sort.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/sort.go b/sort.go
index e7f4946..a63b067 100644
--- a/sort.go
+++ b/sort.go
@@ -21,14 +21,12 @@ func (pb *Files) makeNewSortfile(pf *File) error {
header(wSort, pf)
header(wFind, pf)
- if !argv.Mutex {
- pf.syncLock(wSort)
- }
+ pf.syncLock(wSort)
- if argv.Mutex {
- // use the mutex lock from the modified protoc.pb.go file
- pf.Bases.Lockname = "all.Lock"
- }
+ // if argv.Mutex {
+ // // use the mutex lock from the modified protoc.pb.go file
+ // pf.Bases.Lockname = "all.Lock"
+ // }
pf.Base.iterTop(wSort)
pf.Base.iterNext(wSort)