[OpenSIPS-Devel] [OpenSIPS/opensips] 40962c: pua: set db_flag to UPDATEDB_FLAG only if there wa...

Ovidiu Sas osas at voipembedded.com
Tue Nov 26 00:03:15 CET 2013


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 40962ceb87c1c79db5ded5ed36a5ae82bc735bf2
      https://github.com/OpenSIPS/opensips/commit/40962ceb87c1c79db5ded5ed36a5ae82bc735bf2
  Author: Ovidiu Sas <osas at voipembedded.com>
  Date:   2013-11-25 (Mon, 25 Nov 2013)

  Changed paths:
    M modules/pua/send_publish.c

  Log Message:
  -----------
  pua: set db_flag to UPDATEDB_FLAG only if there was a previous update (NO_UPDATEDB_FLAG)
 - in case of a server restart, if the db_flag went from INSERTDB_FLAG to UPDATEDB_FLAG
   the record will be lost because the record is marked as to be updated,
   and since there's no record in the db, the update will fail.
 - if the db_flag is INSERTDB_FLAG, any updates should leave the flag as is and this
   will cause the new record to be properly inserted (and not updated) into the db.





More information about the Devel mailing list