Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | More legacy configuration sync code removed. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
fe7f0ece30019cb910bc3d6d4a155ea8 |
| User & Date: | drh 2017-09-20 12:25:13.623 |
Context
|
2017-09-20
| ||
| 12:34 | Add support for doing a "configuration sync" of URL aliases. check-in: 3d36a37a73 user: drh tags: trunk | |
| 12:25 | More legacy configuration sync code removed. check-in: fe7f0ece30 user: drh tags: trunk | |
| 12:10 | Remove support for the legacy configuration sync transfer format, that was replaced in 2011. check-in: 2ed7c1123d user: drh tags: trunk | |
Changes
Changes to src/configure.c.
| ︙ | ︙ | |||
234 235 236 237 238 239 240 |
}
return m;
}
}
return 0;
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
}
return m;
}
}
return 0;
}
/*
** Two SQL functions:
**
** config_is_reset(int)
** config_reset(int)
**
** The config_is_reset() function takes the integer valued argument and
|
| ︙ | ︙ |
Changes to src/xfer.c.
| ︙ | ︙ | |||
1004 1005 1006 1007 1008 1009 1010 |
" AND NOT EXISTS(SELECT 1 FROM phantom WHERE rid=blob.rid)"
);
while( db_step(&q)==SQLITE_ROW ){
blob_appendf(pXfer->pOut, "igot %s\n", db_column_text(&q, 0));
}
db_finalize(&q);
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
" AND NOT EXISTS(SELECT 1 FROM phantom WHERE rid=blob.rid)"
);
while( db_step(&q)==SQLITE_ROW ){
blob_appendf(pXfer->pOut, "igot %s\n", db_column_text(&q, 0));
}
db_finalize(&q);
}
/*
** pXfer is a "pragma uv-hash HASH" card.
**
** If HASH is different from the unversioned content hash on this server,
** then send a bunch of uvigot cards, one for each entry unversioned file
** on this server.
|
| ︙ | ︙ | |||
1450 1451 1452 1453 1454 1455 1456 |
char *zName = blob_str(&xfer.aToken[1]);
if( zName[0]=='/' ){
/* New style configuration transfer */
int groupMask = configure_name_to_mask(&zName[1], 0);
if( !g.perm.Admin ) groupMask &= ~CONFIGSET_USER;
if( !g.perm.RdAddr ) groupMask &= ~CONFIGSET_ADDR;
configure_send_group(xfer.pOut, groupMask, 0);
| < < < | 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 |
char *zName = blob_str(&xfer.aToken[1]);
if( zName[0]=='/' ){
/* New style configuration transfer */
int groupMask = configure_name_to_mask(&zName[1], 0);
if( !g.perm.Admin ) groupMask &= ~CONFIGSET_USER;
if( !g.perm.RdAddr ) groupMask &= ~CONFIGSET_ADDR;
configure_send_group(xfer.pOut, groupMask, 0);
}
}
}else
/* config NAME SIZE \n CONTENT
**
** Receive a configuration value from the client. This is only
|
| ︙ | ︙ |