OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci_aws_sdk Namespace Reference

Functions

void init_sdk ()
 
void shutdown_sdk ()
 

Function Documentation

void omnisci_aws_sdk::init_sdk ( )

Definition at line 32 of file OmniSciAwsSdk.cpp.

References CHECK.

Referenced by startMapdServer().

32  {
33  arrow::fs::S3GlobalOptions s3_global_options;
34  auto status = arrow::fs::InitializeS3(s3_global_options);
35  CHECK(status.ok()) << "InitializeS3 resulted in an error: " << status.message();
36 #ifdef ARROW_HAS_PRIVATE_AWS_SDK
37  // Directly initialize the AWS SDK, if Arrow uses a private version of the SDK
38  Aws::InitAPI(awsapi_options);
39 #endif
40 }
#define CHECK(condition)
Definition: Logger.h:197

+ Here is the caller graph for this function:

void omnisci_aws_sdk::shutdown_sdk ( )

Definition at line 42 of file OmniSciAwsSdk.cpp.

References CHECK.

Referenced by startMapdServer().

42  {
43  auto status = arrow::fs::FinalizeS3();
44  CHECK(status.ok()) << "FinalizeS3 resulted in an error: " << status.message();
45 #ifdef ARROW_HAS_PRIVATE_AWS_SDK
46  // Directly shutdown the AWS SDK, if Arrow uses a private version of the SDK
47  Aws::ShutdownAPI(awsapi_options);
48 #endif
49 }
#define CHECK(condition)
Definition: Logger.h:197

+ Here is the caller graph for this function: