CVS Commit: FAC dist/service/rcnetwork/usr/adm/fac/libexec by jhutz

Jeffrey Hutzelman jhutz+ at minbar.fac.cs.cmu.edu
Mon Apr 8 15:10:28 EDT 2019


Update of /afs/cs.cmu.edu/project/fac-cvs/dist/service/rcnetwork/usr/adm/fac/libexec
In directory minbar.fac.cs.cmu.edu:/afs/cs.cmu.edu/project/fac-master/dist/service/rcnetwork/usr/adm/fac/libexec

Modified Files:
	rc_net_host 
Log Message:
rc_net_host: make db_connect, blox_connect idempotent

Make db_connect() and blox_connect() noops if we are already connected to
the relevant database. Also, make db_disconnect() clear the db connection
handle and ticket state, so that a future db_connect() will work right.

This helps pave the way for a long-lived daemon which will run multiple
requests over the same database and/or Infoblox connections. It also
allows the database connection to be torn down and set up again multiple
times within a single session.




More information about the Fac-source-change-log mailing list