diff options
| author | Christian Hopps <chopps@labn.net> | 2023-06-12 04:59:19 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-06-18 16:17:32 -0400 | 
| commit | f8500d484997f34d0484488216c98017745f1a37 (patch) | |
| tree | 53a6040aea340e7ac0feb2079ebb361390a37d65 /lib/vty.h | |
| parent | babbdd43d5319dd370672f794a44f33bdcdc36e5 (diff) | |
lib: mgmtd: use short-circuit for locking
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/vty.h')
| -rw-r--r-- | lib/vty.h | 3 | 
1 files changed, 2 insertions, 1 deletions
@@ -230,6 +230,7 @@ struct vty {  	 * vty user. */  	const char *mgmt_req_pending_cmd;  	bool mgmt_locked_candidate_ds; +	bool mgmt_locked_running_ds;  };  static inline void vty_push_context(struct vty *vty, int node, uint64_t id) @@ -416,7 +417,7 @@ extern int vty_mgmt_send_get_config(struct vty *vty,  extern int vty_mgmt_send_get_data(struct vty *vty, Mgmtd__DatastoreId datastore,  				  const char **xpath_list, int num_req);  extern int vty_mgmt_send_lockds_req(struct vty *vty, Mgmtd__DatastoreId ds_id, -				    bool lock); +				    bool lock, bool scok);  extern void vty_mgmt_resume_response(struct vty *vty, bool success);  static inline bool vty_needs_implicit_commit(struct vty *vty)  | 
