mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[CI] Try to Mbed things out
This commit is contained in:
parent
9f1c2046fd
commit
4a2160503b
3 changed files with 19 additions and 17 deletions
|
|
@ -159,13 +159,16 @@ ParseeCleanup(void *datp)
|
|||
ArrayAdd(to_delete, StrDuplicate(f)); \
|
||||
cleaned++; \
|
||||
} \
|
||||
Log(LOG_INFO, "Free A, %s [%s][%p]", f, #field, ref); \
|
||||
DbUnlock(data->db, ref); \
|
||||
Log(LOG_INFO, "Free'd!"); \
|
||||
} \
|
||||
DbListFree(field##_list); \
|
||||
\
|
||||
for (j = 0; j < ArraySize(to_delete); j++) \
|
||||
{ \
|
||||
field = ArrayGet(to_delete, j); \
|
||||
Log(LOG_INFO, "%s (%ss)", field, #field"s"); \
|
||||
if (cleaned > threshold) \
|
||||
{ \
|
||||
DbDelete(data->db, 4, "chats", chat, #field"s", field); \
|
||||
|
|
@ -236,7 +239,9 @@ ParseeCleanup(void *datp)
|
|||
CleanupField(event, 3 HOURS, 500);
|
||||
CleanupField(id, 3 HOURS, 500);
|
||||
|
||||
Log(LOG_INFO, "Free B %p", ref);
|
||||
DbUnlock(data->db, ref);
|
||||
Log(LOG_INFO, "Free'd!");
|
||||
}
|
||||
DbListFree(chats);
|
||||
Log(LOG_DEBUG, "Cleant up %d entries...", entries);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue