Fix PAZ-1009: Do not create local facets when facetmap:split
authorHeikki Levanto <heikki@indexdata.dk>
Tue, 21 Jul 2015 08:37:13 +0000 (10:37 +0200)
committerHeikki Levanto <heikki@indexdata.dk>
Tue, 21 Jul 2015 08:37:13 +0000 (10:37 +0200)
doc/common
src/client.c

index 790930a..6cdcfde 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 790930ae30e7d12e02a512a109fc40c82675df20
+Subproject commit 6cdcfde2c770531a571d755ed070059ee7ab4fc9
index 644e42d..ff6e2a7 100644 (file)
@@ -778,6 +778,8 @@ int client_has_facet(struct client *cl, const char *name)
     for (s = sdb->settings[PZ_FACETMAP]; s; s = s->next)
     {
         const char *p = strchr(s->name + 3, ':');
+        if ( !strncmp(p, ":split:", 7) )
+            p += 6; // PAZ-1009
         if (p && !strcmp(name, p + 1))
             return 1;
     }