mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Fix SQL prepare retry code missed by 3040d2b665
This commit is contained in:
parent
9614d4f89c
commit
3ce57c8955
@ -215,10 +215,10 @@ int overlay_rhizome_add_advertisements(int interface_number,overlay_buffer *e)
|
|||||||
for(pass=skipmanifests;pass<2;pass++) {
|
for(pass=skipmanifests;pass<2;pass++) {
|
||||||
switch(pass) {
|
switch(pass) {
|
||||||
case 0: /* Full manifests */
|
case 0: /* Full manifests */
|
||||||
statement = sqlite_prepare("SELECT MANIFEST,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
|
statement = sqlite_prepare(&retry, "SELECT MANIFEST,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
|
||||||
break;
|
break;
|
||||||
case 1: /* BARs */
|
case 1: /* BARs */
|
||||||
statement = sqlite_prepare("SELECT BAR,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
|
statement = sqlite_prepare(&retry, "SELECT BAR,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!statement)
|
if (!statement)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user