You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
558 B

  1. -module(agRepairJobs).
  2. -include("erlArango.hrl").
  3. -compile([export_all, nowarn_export_all]).
  4. %% doc_address:https://www.arangodb.com/docs/stable/http/repairs.html
  5. %% 检查修复
  6. %% GET /_admin/repairs/distributeShardsLike
  7. checkRepir(PoolNameOrSocket) ->
  8. agHttpCli:callAgency(PoolNameOrSocket, ?Get, <<"/_admin/repairs/distributeShardsLike">>, [], undefined).
  9. %% 修复
  10. %% POST /_admin/repairs/distributeShardsLike
  11. repir(PoolNameOrSocket) ->
  12. agHttpCli:callAgency(PoolNameOrSocket, ?Post, <<"/_admin/repairs/distributeShardsLike">>, [], undefined).