From dfddd54f009a6752910d33f949afbba639b27a86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20=C3=81lvarez=20Ayll=C3=B3n?= Date: Wed, 12 Dec 2012 15:01:10 +0000 Subject: [PATCH] LCGDM-794: Adapted to new API git-svn-id: https://svn.cern.ch/reps/lcgdm/dmlite-plugins-vfs/trunk@8018 4525493e-7705-40b1-a816-d608a930855b --- src/VfsDriver.cpp | 10 +++++----- src/VfsPool.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/VfsDriver.cpp b/src/VfsDriver.cpp index f9c87d2..e756901 100644 --- a/src/VfsDriver.cpp +++ b/src/VfsDriver.cpp @@ -170,14 +170,14 @@ Location VfsPoolHandler::whereToRead(const Replica& replica) throw (DmException) Chunk single; - single.host = this->driver_->hostName_; - single.path = "/vfs" + rloc.path; + single.url.domain = this->driver_->hostName_; + single.url.path = "/vfs" + rloc.path; single.offset = 0; single.size = fstat.st_size; - single["token"] = dmlite::generateToken(this->driver_->userId_, single.path, - this->driver_->tokenPasswd_, - this->driver_->tokenLife_); + single.url.query["token"] = dmlite::generateToken(this->driver_->userId_, single.url.path, + this->driver_->tokenPasswd_, + this->driver_->tokenLife_); return Location(1, single); } diff --git a/src/VfsPool.cpp b/src/VfsPool.cpp index e14ac3b..bf9b4c8 100644 --- a/src/VfsPool.cpp +++ b/src/VfsPool.cpp @@ -130,14 +130,14 @@ Location VfsPoolManager::whereToRead(const std::string& path) throw (DmException Chunk single; - single.host = this->hostName_; - single.path = "/vfs" + rloc.path; + single.url.domain = this->hostName_; + single.url.path = "/vfs" + rloc.path; single.offset = 0; single.size = fstat.st_size; - single["token"] = dmlite::generateToken(this->userId_, single.path, - this->tokenPasswd_, - this->tokenLife_); + single.url.query["token"] = dmlite::generateToken(this->userId_, single.url.path, + this->tokenPasswd_, + this->tokenLife_); return Location(1, single); } -- 1.8.2.3