manager.cpp (86c87f55de9bb69f6e49c6203ffb0e12947ea7cf) manager.cpp (8bc117792fbf118dd74d015546c22612961ccc26)
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0

--- 177 unchanged lines hidden (view full) ---

186 if (item == sessions.end())
187 {
188 return "";
189 }
190
191 return item->second.blobId;
192}
193
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0

--- 177 unchanged lines hidden (view full) ---

186 if (item == sessions.end())
187 {
188 return "";
189 }
190
191 return item->second.blobId;
192}
193
194bool BlobManager::stat(const std::string& path, struct BlobMeta* meta)
194bool BlobManager::stat(const std::string& path, BlobMeta* meta)
195{
196 /* meta should never be NULL. */
197 GenericBlobInterface* handler = getHandler(path);
198
199 /* No handler found. */
200 if (!handler)
201 {
202 return false;
203 }
204
205 return handler->stat(path, meta);
206}
207
195{
196 /* meta should never be NULL. */
197 GenericBlobInterface* handler = getHandler(path);
198
199 /* No handler found. */
200 if (!handler)
201 {
202 return false;
203 }
204
205 return handler->stat(path, meta);
206}
207
208bool BlobManager::stat(uint16_t session, struct BlobMeta* meta)
208bool BlobManager::stat(uint16_t session, BlobMeta* meta)
209{
210 /* meta should never be NULL. */
211 GenericBlobInterface* handler = getHandler(session);
212
213 /* No handler found. */
214 if (!handler)
215 {
216 return false;

--- 172 unchanged lines hidden ---
209{
210 /* meta should never be NULL. */
211 GenericBlobInterface* handler = getHandler(session);
212
213 /* No handler found. */
214 if (!handler)
215 {
216 return false;

--- 172 unchanged lines hidden ---