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

Ovidiu Sas osas at voipembedded.com
Tue Nov 26 00:07:53 CET 2013


  Branch: refs/heads/1.10
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b7438f26a2e9769925894b68c47223a2ebd02639
      https://github.com/OpenSIPS/opensips/commit/b7438f26a2e9769925894b68c47223a2ebd02639
  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.
(cherry picked from commit 40962ceb87c1c79db5ded5ed36a5ae82bc735bf2)





More information about the Devel mailing list