mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
sms: Workaround a bug in the db layer and update the data
The sync with the database might fail. Reread the updated subscriber after we have written it. The source of this failure is unknown.
This commit is contained in:
@@ -152,6 +152,9 @@ static void sms_pending_failed(struct gsm_sms_pending *pending, int paging_error
|
||||
"Subscriber %llu is not reachable. Setting LAC=0.\n", pending->subscr->id);
|
||||
pending->subscr->lac = GSM_LAC_RESERVED_DETACHED;
|
||||
db_sync_subscriber(pending->subscr);
|
||||
|
||||
/* Workaround a failing sync */
|
||||
db_subscriber_update(pending->subscr);
|
||||
}
|
||||
|
||||
sms_pending_free(pending);
|
||||
|
Reference in New Issue
Block a user