saving complete ODB should not save /System/Clients

Issue #63 resolved
dd1 created an issue

saving complete ODB should not save /System/Clients, on restore it creates phantom "active" clients. K.O.

Comments (3)

  1. Stefan Ritt

    db_paste does not restore /System/Clients:

    odb.c line 6741: if (!equal_ustring(test_str, "/System/Clients")) { ... }
    

    and also db_paste_xml has that check:

    odb.c line 6803: if (equal_ustring(test_str, "/System/Clients"))
             return DB_SUCCESS;
    

    I guess you have not put that check int your db_paste_json code.

    Now you might ask why I do the check on loading and not on saving. The reason is that when I save the ODB after a run, or inside the data file, I want to know which programs were active at that time, so I want an exact 1:1 copy of the ODB. I guess you should add such a check into your db_paste_json code.

    Stefan

  2. Log in to comment