forked from ecmwf/fdb
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Add parallax implementation on top of daos catalogue and store
- Loading branch information
Showing
2 changed files
with
277 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
This comment has been minimized.
Sorry, something went wrong. |
||
* (C) Copyright 1996- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* In applying this licence, ECMWF does not waive the privileges and immunities | ||
* granted to it by virtue of its status as an intergovernmental organisation nor | ||
* does it submit to any jurisdiction. | ||
*/ | ||
|
||
/* | ||
* @file dummy_daos.cc | ||
* @author Nicolau Manubens | ||
* @date Jun 2022 | ||
*/ | ||
|
||
#include "dummy_daos.h" | ||
|
||
#include "eckit/config/Resource.h" | ||
#include "eckit/exception/Exceptions.h" | ||
|
||
using eckit::PathName; | ||
|
||
//---------------------------------------------------------------------------------------------------------------------- | ||
|
||
typedef struct daos_handle_internal_t { | ||
PathName path; | ||
} daos_handle_internal_t; | ||
|
||
//---------------------------------------------------------------------------------------------------------------------- | ||
|
||
const PathName& dummy_daos_root() { | ||
|
||
static PathName tmpdir = eckit::Resource<PathName>("$TMPDIR", "/tmp"); | ||
static PathName daos_root = eckit::Resource<PathName>("$DUMMY_DAOS_DATA_ROOT", tmpdir / "parallax"); | ||
return daos_root; | ||
|
||
} | ||
|
||
const PathName& dummy_daos_get_handle_path(daos_handle_t handle) { | ||
|
||
ASSERT(handle.impl); | ||
return handle.impl->path; | ||
|
||
} | ||
|
||
//---------------------------------------------------------------------------------------------------------------------- |
Oops, something went wrong.
Remove the top section, we need to replace with FORTH's corresponding license