Code

frontend: Let LIST not include details.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 Apr 2014 10:23:37 +0000 (12:23 +0200)
committerSebastian 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).

src/frontend/query.c
src/include/core/store.h

index 759b9c9795ebbe86da1c9ab4308c0c641f7e10aa..0b582f54dce54e8481b8b6e0292b52856c48c9ec 100644 (file)
@@ -133,7 +133,7 @@ sdb_fe_list(sdb_conn_t *conn)
                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)
@@ -224,6 +224,8 @@ enum {
        SDB_SKIP_ATTRIBUTES         = 1 << 0,
        SDB_SKIP_SERVICES           = 1 << 1,
        SDB_SKIP_SERVICE_ATTRIBUTES = 1 << 2,
+
+       SDB_SKIP_ALL                = 0xffff,
 };
 
 /*