Commit Graph

14 Commits (8425eed8cdabdcb08310269eff38902e7af01efd)

Author SHA1 Message Date
Eric Leblond 8425eed8cd datasets: improve lock handling
DatasetGetOrCreate should now be called with the dataset lock
hold so the lock management is easier to read.
10 months ago
Eric Leblond 449d6fe607 datasets: rename function
DatasetCreateOrGet was in fact doing get or create.
10 months ago
Eric Leblond 43743b0fd3 datajson: key length fix
When using type string, we should not limit the size of the string.

This patch also fixes some implicit cast issues.
10 months ago
Eric Leblond 3e48342248 datajson: factorize code
Code was duplicated and a build error was reported so factorizing
was the best way to clean it.
10 months ago
Eric Leblond df99d29ee4 datajson: add sanity check on length
Also cast to avoid compilation error.
10 months ago
Eric Leblond cfa7a747c2 datajson: use systematic allocation 10 months ago
Eric Leblond d84d7431e4 datajson: more explicit memory handling 10 months ago
Eric Leblond 79c8f431d0 datajson: simplify memory handling
DatajsonAdd function is now responsible of the handling of the mem
of datajsontype passed as argument.
10 months ago
Eric Leblond 606f7ba656 datajson: use wrapper 10 months ago
Eric Leblond 7e7bd92432 datajson: fix potential leak in error handling 10 months ago
Eric Leblond 4a420085b7 datajson: remove unnecessary abstraction 10 months ago
Eric Leblond d57e8731bd datajson: use more broadly supported formatter 10 months ago
Eric Leblond c15bcbe9d6 datasets: factorize dataset creation
Factorize DatasetGet and DatajsonGet to only have the difference
between the two in the respective function.
10 months ago
Eric Leblond b766bd9438 datasets/context: rename the datajson files
They are is renamed to datasets-context-json.* so we see that
it is about context and not about a new datasets type.
10 months ago