ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [1/2] incubator-ignite git commit: IGNITE-843: Fixed save for cluster, cache, metadata: added check for space. Same names are valid in different spaces.
Date Mon, 27 Jul 2015 04:37:04 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 8f3042822 -> ee6fa094b


IGNITE-843: Fixed save for cluster, cache, metadata: added check for space. Same names are
valid in different spaces.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e0d3f7c5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e0d3f7c5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e0d3f7c5

Branch: refs/heads/ignite-843
Commit: e0d3f7c5d0eb3ba8f92b8c767e30815fa6121da5
Parents: 8f30428
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Mon Jul 27 11:36:10 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Mon Jul 27 11:36:10 2015 +0700

----------------------------------------------------------------------
 modules/web-control-center/src/main/js/routes/caches.js   | 2 +-
 modules/web-control-center/src/main/js/routes/clusters.js | 2 +-
 modules/web-control-center/src/main/js/routes/metadata.js | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e0d3f7c5/modules/web-control-center/src/main/js/routes/caches.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/src/main/js/routes/caches.js b/modules/web-control-center/src/main/js/routes/caches.js
index 7b9c62b..24152af 100644
--- a/modules/web-control-center/src/main/js/routes/caches.js
+++ b/modules/web-control-center/src/main/js/routes/caches.js
@@ -73,7 +73,7 @@ router.post('/save', function (req, res) {
             res.send(req.body._id);
         });
     else {
-        db.Cache.findOne({name: req.body.name}, function (err, cache) {
+        db.Cache.findOne({space: req.body.space, name: req.body.name}, function (err, cache)
{
             if (err)
                 return res.status(500).send(err.message);
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e0d3f7c5/modules/web-control-center/src/main/js/routes/clusters.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/src/main/js/routes/clusters.js b/modules/web-control-center/src/main/js/routes/clusters.js
index 182130d..683630e 100644
--- a/modules/web-control-center/src/main/js/routes/clusters.js
+++ b/modules/web-control-center/src/main/js/routes/clusters.js
@@ -72,7 +72,7 @@ router.post('/save', function (req, res) {
             res.send(req.body._id);
         });
     else {
-        db.Cluster.findOne({name: req.body.name}, function (err, cluster) {
+        db.Cluster.findOne({space: req.body.space, name: req.body.name}, function (err, cluster)
{
             if (err)
                 return res.status(500).send(err.message);
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e0d3f7c5/modules/web-control-center/src/main/js/routes/metadata.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/src/main/js/routes/metadata.js b/modules/web-control-center/src/main/js/routes/metadata.js
index 64b8763..0af624e 100644
--- a/modules/web-control-center/src/main/js/routes/metadata.js
+++ b/modules/web-control-center/src/main/js/routes/metadata.js
@@ -63,7 +63,7 @@ router.post('/save', function (req, res) {
             res.send(req.body._id);
         });
     else {
-        db.CacheTypeMetadata.findOne({name: req.body.name}, function (err, metadata) {
+        db.CacheTypeMetadata.findOne({space: req.body.space, name: req.body.name}, function
(err, metadata) {
             if (err)
                 return res.status(500).send(err.message);
 


Mime
View raw message