Closed sm-shaw closed 10 months ago
Updated command so functionality also enabled in primary/replica mode with multiple CLI instances of HammerDB.
hammerdb>switchmode primary
Switch from Local
to Primary mode?
Enter yes or no: replied yes
Setting Primary Mode at id : 15564, hostname : CRANE
Primary Mode active at id : 15564, hostname : CRANE
hammerdb>Received a new replica connection from host 127.0.0.1
New replica joined : {15606 CRANE}
hammerdb>giset commandline keepalive_margin 900
Changed commandline:keepalive_margin from 600 to 900 for generic
---
hammerdb>switchmode replica 15564 crane
Switch from Local
to Replica mode?
Enter yes or no: replied yes
Setting Replica Mode at id : 15606, hostname : CRANE
Replica connecting to crane 15564 : Connection succeeded
Primary call back successful
hammerdb>Changed commandline:keepalive_margin from 600 to 900 for generic
Merging after reviews and approval of the three members of the code maintenance team.
Add giset command to modify generic dictionary settings and print generic to print the current settings out. Modifications are persisted to the SQLite storage. Update has also been made to tclpy fork to keep commands in sync https://github.com/sm-shaw/libtclpy/commit/f53b1fcda14cc15707b100178006e512b1cff928 Examples of usage of both commands as shown.