From 5903e8949096b5a6d8de320e4a610f20a57c35fa Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 23 Aug 2014 19:55:04 -0700 Subject: [PATCH] On GCE, put the UI's thumbnail metadata cache on MySQL too. Change-Id: Ic3f1238deeb6b569b30e6c3f6b0def2b68f13d93 --- pkg/serverinit/env.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/serverinit/env.go b/pkg/serverinit/env.go index 43950e2fa..ac12ecef7 100644 --- a/pkg/serverinit/env.go +++ b/pkg/serverinit/env.go @@ -77,7 +77,8 @@ func DefaultEnvConfig() (*Config, error) { if v := os.Getenv("MYSQLDB_PORT"); strings.HasPrefix(v, "tcp://") { hostPort := strings.TrimPrefix(v, "tcp://") highConf.MySQL = "root@" + hostPort + ":" // no password - highConf.DBNames["queue-sync-to-index"] = "camsyncqueue_index" + highConf.DBNames["queue-sync-to-index"] = "sync_index_queue" + highConf.DBNames["ui_thumbcache"] = "ui_thumbmeta_cache" } else { // TODO: also detect Cloud SQL. highConf.KVFile = "/index.kv"