Override default locking for a specific command

You can override the db.peeking setting on a per-command basis by using the -Zpeeking= flag followed by your preferred value. For example, to disable peeking for p4 fstat:


$ p4 -Ztrack -Zpeeking=1 fstat <a_file>

...

— db.working

— pages in+out+cached 3+0+2

— locks read/write 1/0 rows get+pos+scan put+del 0+1+1 0+0

...

and compare the results with:


$ p4 -Ztrack -Zpeeking=2 fstat <a_file>

...

— db.working

— pages in+out+cached 3+0+2

— locks read/write 0/0 rows get+pos+scan put+del 0+1+1 0+0

— peek count 1 wait+held total/max 0ms+0ms/0ms+0ms

...