From a3a659ba5cb26067c65983d97b3331eaf7b8a3fc Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 25 Dec 2010 16:53:24 +0100 Subject: 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. --- openbsc/src/sms_queue.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc') diff --git a/openbsc/src/sms_queue.c b/openbsc/src/sms_queue.c index 89daf1f0f..c03b369df 100644 --- a/openbsc/src/sms_queue.c +++ b/openbsc/src/sms_queue.c @@ -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); -- cgit v1.2.3