Revision 652dcb59e91c25e6e6b26138b2e3fbd34a21a4cd authored by Christian Stewart on 17 June 2021, 02:11:03 UTC, committed by Christian Stewart on 17 June 2021, 02:11:04 UTC
Throughout the code there are calls to ValueOf() and NameOf() on the QuadStore.
The QuadStore currently returns a single value for these functions without an
error, but internally the QuadStore might run into some errors when processing
the value. This hack is clearly identified in the code: rather than return the
error, it's just logged.

If the QuadStore has an error while processing ValueOf or NameOf, the returned
value will be nil which might lead to many types of undefined behavior - such as
queries returning "nil" for one field of a Quad.

Fixes #985

Signed-off-by: Christian Stewart <christian@paral.in>
1 parent 08381ef
Raw File
cayley_example.yml
store:
  # backend to use
  backend: bolt
  # address or path for the database
  address: "./cayley.db"
  # open database in read-only mode
  read_only: false
  # backend-specific options
  options:
    nosync: false
query:
  timeout: 30s
load:
  ignore_duplicates: false
  ignore_missing: false
  batch: 10000
back to top