Skip to content
Success

Changes

Summary

  1. sqlite optimisation: check VLR earlier for dest. subscriber (details)
Commit c6389f4912f0cced85f9df577d67d7269689e8c7 by keith
sqlite optimisation: check VLR earlier for dest. subscriber

sms_from_result() calls a number of sqlite3_column_XXX functions
to build the SMS in memory.

If the destination subscriber is not attached, the sms
will be free'd immediatly anyway in smsq_take_next_sms()
so let's check if the destination subscriber is present
and attached before we call all the sqlite3 routines.

Change-Id: Ibd07b9d200b48108d705ed4c461cc4ddfa421fd2
The file was modifiedtests/sms_queue/sms_queue_test.ok
The file was modifiedsrc/libmsc/db.c
The file was modifiedsrc/libmsc/sms_queue.c
The file was modifiedtests/sms_queue/sms_queue_test.c