aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-08-18 15:46:54 +1000
committeronefang2021-08-18 15:46:54 +1000
commit63f7329f3776a7465cb4b035baaf36e9a40ab1a2 (patch)
tree706a0229649dae535f5040634f6be1623e2195ff
parentOnly backup members inventories that have been on since last backup. (diff)
downloadopensim-SC-63f7329f3776a7465cb4b035baaf36e9a40ab1a2.zip
opensim-SC-63f7329f3776a7465cb4b035baaf36e9a40ab1a2.tar.gz
opensim-SC-63f7329f3776a7465cb4b035baaf36e9a40ab1a2.tar.bz2
opensim-SC-63f7329f3776a7465cb4b035baaf36e9a40ab1a2.tar.xz
Index sims by UUID in ourSims as well.
-rw-r--r--src/sledjchisl/sledjchisl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 3f3e171..3821a7b 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -1122,7 +1122,7 @@ struct _simList
1122{ 1122{
1123 int len, num; 1123 int len, num;
1124 char **sims; 1124 char **sims;
1125 qtreetbl_t *byTab, *simsLua, *unsorted; 1125 qtreetbl_t *byTab, *simsLua, *unsorted, *byUUID;
1126 // Stuff for the looping through sims, doing things, and waiting. 1126 // Stuff for the looping through sims, doing things, and waiting.
1127 int doIt; 1127 int doIt;
1128 float la; 1128 float la;
@@ -1306,6 +1306,7 @@ void simNotFound(simData *simd, char *sim, char *type, int count, int window, in
1306 simd->sizeZ = getIntFromIni(ini, "Region.SizeZ"); 1306 simd->sizeZ = getIntFromIni(ini, "Region.SizeZ");
1307// TODO - store a pointer instead of multiple copies of the data. 1307// TODO - store a pointer instead of multiple copies of the data.
1308 ourSims->byTab->put(ourSims->byTab, sim, simd, sizeof(simData)); 1308 ourSims->byTab->put(ourSims->byTab, sim, simd, sizeof(simData));
1309 ourSims->byUUID->put(ourSims->byUUID, simd->UUID, simd, sizeof(simData));
1309 if (strcmp("unsorted", type) == 0) 1310 if (strcmp("unsorted", type) == 0)
1310 ourSims->unsorted->put(ourSims->unsorted, sim, simd, sizeof(simData)); 1311 ourSims->unsorted->put(ourSims->unsorted, sim, simd, sizeof(simData));
1311 ini->free(ini); 1312 ini->free(ini);
@@ -1352,6 +1353,7 @@ void freeSimList(simList *sims)
1352 sims->byTab->free(sims->byTab); 1353 sims->byTab->free(sims->byTab);
1353 freeLuaTree(sims->simsLua); 1354 freeLuaTree(sims->simsLua);
1354 freeLuaTree(sims->unsorted); 1355 freeLuaTree(sims->unsorted);
1356 freeLuaTree(sims->byUUID);
1355 free(sims->target); 1357 free(sims->target);
1356 free(sims->backup); 1358 free(sims->backup);
1357 1359
@@ -1371,6 +1373,7 @@ simList *getSims()
1371 ourSims = xzalloc(sizeof(simList)); 1373 ourSims = xzalloc(sizeof(simList));
1372 ourSims->byTab = qtreetbl(0); 1374 ourSims->byTab = qtreetbl(0);
1373 ourSims->unsorted = qtreetbl(0); 1375 ourSims->unsorted = qtreetbl(0);
1376 ourSims->byUUID = qtreetbl(0);
1374 ourSims->doIt = FALSE; 1377 ourSims->doIt = FALSE;
1375 1378
1376 // Read or create simsLua 1379 // Read or create simsLua