summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 635555f)
raw | patch | inline | side by side (parent: 635555f)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 2 Apr 2014 10:23:37 +0000 (12:23 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 2 Apr 2014 10:23:37 +0000 (12:23 +0200) |
Now that we have FETCH and LOOKUP, list should only provide basic information
(name and last_update).
(name and last_update).
src/frontend/query.c | patch | blob | history | |
src/include/core/store.h | patch | blob | history |
diff --git a/src/frontend/query.c b/src/frontend/query.c
index 759b9c9795ebbe86da1c9ab4308c0c641f7e10aa..0b582f54dce54e8481b8b6e0292b52856c48c9ec 100644 (file)
--- a/src/frontend/query.c
+++ b/src/frontend/query.c
return -1;
}
- if (sdb_store_tojson(buf, /* flags = */ 0)) {
+ if (sdb_store_tojson(buf, /* flags = */ SDB_SKIP_ALL)) {
sdb_log(SDB_LOG_ERR, "frontend: Failed to serialize "
"store to JSON");
sdb_strbuf_sprintf(conn->errbuf, "Out of memory");
index e09483ff7ed283f0ec65c8ac89823d6323c3cc1b..1dfa9ab51005f3b116ce18332b9f6124c95cd833 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
SDB_SKIP_ATTRIBUTES = 1 << 0,
SDB_SKIP_SERVICES = 1 << 1,
SDB_SKIP_SERVICE_ATTRIBUTES = 1 << 2,
+
+ SDB_SKIP_ALL = 0xffff,
};
/*